<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/piaoyi.tld" prefix="piaoyi"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>票易网</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/user.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="css/changejs.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.pngFix.pack.js"></script>
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/jquery.lazyload.js"></script>
<script type="text/javascript" src="js/foucs.js"></script>
<script type="text/javascript">
	$("img").seeIt(function(){$(this).attr("src" , $(this).attr("original"));}, {nearby : 200});
	var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0578294a14fae8ac90f4609ae2844eda' type='text/javascript'%3E%3C/script%3E"));

	$(function(){
		var $zscrtime;
		$zscrtime = setInterval(function(){
			var $leng = $('ul#xxk img[original1!="true"]');
			$leng.each(function(i,o){
				var self = $(o);
				if(self.attr("original1")!="true"){
					self.attr("src", self.attr("original1"));
					self.attr("original1","true");
				}
				if(i>2) return false;
			});
		   if($leng.length==0) clearInterval($zscrtime);
			
		},5000);
	});
function writeDateInfo()
{
        var day="";
        var month="";
        var ampm="";
        var ampmhour="";
        var myweekday="";
        var year="";
        mydate=new Date();
        myweekday=mydate.getDay();
        mymonth=mydate.getMonth()+1;
        myday= mydate.getDate();
        myyear= mydate.getYear();
        year=(myyear > 200) ? myyear : 1900 + myyear;
        if(myweekday == 0)
        weekday=" 星期日";
        else if(myweekday == 1)
        weekday=" 星期一";
        else if(myweekday == 2)
        weekday=" 星期二";
        else if(myweekday == 3)
        weekday=" 星期三";
        else if(myweekday == 4)
        weekday=" 星期四";
        else if(myweekday == 5)
        weekday=" 星期五";
        else if(myweekday == 6)
        weekday=" 星期六";
        document.write(year+"年"+mymonth+"月"+myday+"日"+weekday);
}
</script>		
</head>
<body>
<div class="wrap">

	<div class="list_header">
    	<div class="top"><s:include value="/top.jsp" /></div>
	</div>
    
    <div class="list_main">
    
    	<div class="user_content">
        	<ul>
            	<li><span class="user_bg">用户中心</span></li>
                <li>
                	<div class="user_left">
                    	<s:include value="/WEB-INF/user/menu.jsp" />
                    </div>
                    <div class="user_right">
                    <div align="center">
                        <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
                          <col align="right" />
                          <col align="left" />
                          <col align="right" />
                          <col align="left" />
                        <tr>
                          <td width="10%" height="60" align="right">用户名：</td>
                          <td width="24%"><b style="color:#0071a6;"><s:property value="userInfo.account"/></b></td>
                          <td width="9%" align="right">今天是：</td>
                          <td width="57%"><script type="text/javascript">writeDateInfo();</script>，欢迎登录 </td>
                        </tr>
                        <tr>
                          <td height="60" align="right">手机：</td>
                          <td><s:property value="userInfo.mobile"/></td>
                          <td align="right">邮箱：</td>
                          <td><s:property value="userInfo.email"/></td>
                        </tr>
                        <tr>
                          <td><b>我的订单</b></td>
                          <td height="50" colspan="3">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="4">
                              <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr class="user_shop">
                                  <td width="52%" align="left">商品名称</td>
                                  <td width="15%" height="32" align="left">总金额</td>
                                  <td width="16%" align="left">订单状态</td>
                                  <td width="17%" align="left">操作</td>
                                </tr>
                                
                                <s:iterator id="o" value="%{pageList.objectList}" status="st" >
                                <tr class="user_name">
                                  <td height="40" align="left" style="border:0"><s:property value="#o.orderName"/></td>
                                  <td rowspan="2" align="left"><s:property value="#o.orderAmount"/></td>
                                  <td rowspan="2" align="left">
                                  <s:if test="#o.orderStatus==0">
							      	未付款
							      </s:if>
							      <s:if test="#o.orderStatus==1">
							      	已付款
							      </s:if>
							      <s:if test="#o.orderStatus==2">
							      	己发货
							      </s:if>
							      <s:if test="#o.orderStatus==3">
							      	己完成
							      </s:if>
                                  </td>
                                  <td rowspan="2" align="left"><a href="/user_orderinfo.action?action=show&id=<s:property value="#o.id"/>">查看</a></td>
                                </tr>
                                <tr align="left">
                                  <td height="30" valign="top" class="user_time">时间:<s:date name="#o.addTime" format="yyyy-MM-dd HH:mm"/> | 订单号:<s:property value="#o.orderNO"/></td>
                                </tr>
                                </s:iterator>
                                
                                <tr align="left">
                                  <td height="30" valign="top" colspan="4">
                                  	<div class="list_content_right_bottom">
                					<ul>
                						<piaoyi:pages value="%{pageList.pages}"/>
                					</ul>
          						  </div></td>
                                </tr>
                            </table></td>
                          </tr>
                      </table>
                      </div>
                  </div>
                </li>
            </ul>
        <div style="clear:both;"></div>
        </div>
    </div>
    <div class="footer">
      <s:include value="/foot.jsp" />
    </div>

</div>
</body>
</html>
